<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\enum;

class KuaiShouEnum
{
    /**
     * @var int 计划层级
     */
    public const LEVEL_CAMPAIGN = 1;

    /**
     * @var int 组层级
     */
    public const LEVEL_UNIT = 2;

    /**
     * @var int 创意层级
     */
    public const LEVEL_CREATIVE = 3;

    /**
     * @var int 自动计划层级
     */
    public const LEVEL_AUTO_UNIT = -2;

    /**
     * @var int 自动创意层级
     */
    public const LEVEL_AUTO_CREATIVE = -3;

    /**
     * 搭建待执行状态.
     */
    public const BATCH_STATUS_WAIT = 0;

    /**
     * @var int 昨天
     */
    public const YESTERDAY = 1;

    /**
     * @var int 自定义日期
     */
    public const CUSTOM_DAY = 2;

    /**
     * @var int 今天
     */
    public const TODAY = 3;

    /**
     * @var int 单页最大行数
     */
    public const MAX_PAGE_SIZE = 500;

    /**
     * @var int 单页最大条数
     */
    public const MAX_NUMBER = 50;

    /**
     * @var int 素材单页最大行数
     */
    public const MAX_MATERIAL_PAGE_SIZE = 1000;

    /**
     * @var int 定向单页最大行数
     */
    public const MAX_TARGET_PAGE_SIZE = 2000;

    /**
     * @var int 报表-小时粒度
     */
    public const REPORT_TEMPORAL_GRANULARITY_HOURLY = 'HOURLY';

    /**
     * @var int 报表-天粒度
     */
    public const REPORT_TEMPORAL_GRANULARITY_DAILY = 'DAILY';

    /**
     * @var int 提升应用安装
     */
    public const CAMPAIGN_TYPE_INSTALL = 2;

    /**
     * @var int 收集销售线索
     */
    public const CAMPAIGN_TYPE_SALE = 5;

    /**
     * @var int 提升应用活跃
     */
    public const CAMPAIGN_TYPE_ACTIVE = 7;

    /**
     * @var int 建站落地页
     */
    public const WEB_URI_TYPE_SET = 2;

    /**
     * @var int url类型-微信小程序调起链接（仅收集营销线索下且scene_id包含5可用）
     */
    public const WEB_URI_MINI_APP = 4;

    /**
     * @var int 自定义
     */
    public const WEB_URI_TYPE_CUSTOM = 1;

    public const ENHANCE_CONVERSION_STRONG = 8;

    /**
     * @var int 账户报表最大行数
     */
    public const MAX_ADVERTISER_PAGE_SIZE = 2000;

    /**
     * @var int 磁力请求成功应答
     */
    public const RESPONSE_SUCCESS_CODE = 0;

    public const VIDEO_VERTICAL = 1;

    public const BIG_ADV = 6;

    public const REWARD_VIDEO = 24;

    /**
     * @var array 应用类型
     */
    public const APP_LIST_TYPE = [
        1 => '我创建的',
        2 => '共享给我的',
    ];

    /**
     * @var array 快手号授权列表类型
     */
    public const KOL_USER_TYPE = [1, 2, 3];

    /**
     * @var int 新版应用类型
     */
    public const APP_SOURCE_NEW = 2;

    /**
     * @var array 卡片类型数量
     */
    public const TYPE_CARD_NUM = [
        100 => 1,
        101 => 3,
        102 => 3,
        103 => 1,
        104 => 1,
        107 => 1,
        200 => 1,
    ];

    /**
     * 计划类型.
     */
    public const CAMPAIGN_TYPE = [
        self::CAMPAIGN_TYPE_INSTALL => '提升应用安装',
        self::CAMPAIGN_TYPE_SALE => '收集销售线索',
        self::CAMPAIGN_TYPE_ACTIVE => '提升应用活跃',
    ];

    /**
     * 投放范围-快手广告联盟.
     */
    public const PROMOTION_RANGE_KS = 2;

    /**
     * 联盟素材类型-图片.
     */
    public const LM_CREATIVE_TYPE_PIC = 2;

    /**
     * 投放位置.
     */
    public const SCENE_IDS_TYPE = [
        1 => '优选广告位',
        5 => '联盟广告',
        6 => '上下滑大屏广告',
        10 => '联盟场景',
        24 => '激励视频',
        //        27 => '开屏广告位',
        //        39 => '搜索广告',
    ];

    /**
     * 优化目标出价类型.
     */
    public const BID_TYPE = [
        2 => 'CPC',
        10 => 'OCPM',
        12 => 'MCB',
    ];

    /**
     * 创意类型-自定义创意.
     */
    public const CREATIVE_TYPE_CUSTOM = 1;

    /**
     * 创意类型-程序化创意.
     */
    public const CREATIVE_TYPE_PROGRAM = 2;

    /**
     * 创意制作方式-自定义创意.
     */
    public const UNIT_TYPE_CUSTOM = 4;

    /**
     * 创意制作方式-程序化创意 2.0.
     */
    public const UNIT_TYPE_PROGRAM = 7;

    /**
     * 创意类型.
     */
    public const CREATIVE_TYPE_ARR = [
        self::CREATIVE_TYPE_CUSTOM => '自定义创意',
        self::CREATIVE_TYPE_PROGRAM => '程序化创意',
    ];

    /**
     * 深度转化目标-次日留存.
     */
    public const DEEP_CONVERSION_TYPE_CRLC = 7;

    /**
     * 深度转化目标-付费 roi.
     */
    public const DEEP_CONVERSION_ROI = 92;

    /**
     * 转化目标-首日 ROI.
     */
    public const ACTION_TYPE_FIRST_ROI = 191;

    /**
     * 转化目标-7 日 ROI.
     */
    public const ACTION_TYPE_SEVEN_ROI = 774;

    /**
     * 拉取 队列配置key.
     */
    public const LIST_CONFIG_KEY = 'kuai_shou_fetch_list';

    /**
     * 拉取队列锁配置key.
     */
    public const LIST_CONFIG_LOCK_KEY = 'kuai_shou_fetch_lock';

    /**
     * 批量队列配置key.
     */
    public const BATCH_CONFIG_KEY = 'kuai_shou_batch_list';

    /**
     * 批量队列锁配置key.
     */
    public const BATCH_CONFIG_LOCK_KEY = 'kuai_shou_batch_lock';

    /**
     * @var int 落地页-单链接
     */
    public const LANDING_PAGE_SINGLE = 1;

    /**
     * @var int 落地页-多链接
     */
    public const LANDING_PAGE_MORE = 2;

    /**
     * @var int 落地页规则-计划唯一
     */
    public const LANDING_PAGE_RULE_CAMPAIGN = 1;

    /**
     * @var int 落地页规则-组唯一
     */
    public const LANDING_PAGE_RULE_UNIT = 2;

    /**
     * @var int 搜索快投开关-开启
     */
    public const QUICK_SEARCH_OPEN = 1;

    /**
     * @var int 高级创意开关-开启
     */
    public const ADV_CARD_OPTION_OPEN = 1;

    /**
     * @var int 投放排期-长期投放
     */
    public const LAUNCH_TYPE_ALWAYS = 1;

    /**
     * @var int 投放时段-全天
     */
    public const LAUNCH_PERIOD_ALL_DAY = 1;

    /**
     * @var int 素材类型-竖版视频
     */
    public const CREATIVE_MATERIAL_TYPE_VIDEO_VERTICAL = 1;

    /**
     * @var int 素材类型-横版视频
     */
    public const CREATIVE_MATERIAL_TYPE_VIDEO_HORIZONTAL = 2;


    /**
     * @var int 素材类型-竖版图片
     */
    public const CREATIVE_MATERIAL_TYPE_PIC_VERTICAL = 1;

    /**
     * @var int 素材类型-横版图片
     */
    public const CREATIVE_MATERIAL_TYPE_PIC_HORIZONTAL = 2;



    /**
     * @var int 素材来源-账户内
     */
    public const VIDEO_SOURCE_ACCOUNT = 1;

    /**
     * @var int 素材来源-本地系统内
     */
    public const VIDEO_SOURCE_LOCAL = 2;

    /**
     * @var int 自动基建开关-开启
     */
    public const AUTO_BUILD_OPEN = 1;

    /**
     * 视频素材接口状态-删除.
     */
    public const VIDEO_STATUS_DELETE = 0;

    /**
     * 拉取视频状态-全部.
     */
    public const VIDEO_FETCH_STATUS_ALL = -1;

    /**
     * @var int 落地页单选
     */
    public const SINGLE_LANDING_TEMPLATE = 1;

    /**
     * @var int 落地页多选
     */
    public const MULTI_LANDING_TEMPLATE = 2;

    /**
     * @var int 落地页自动选择
     */
    public const AUTO_LANDING_TEMPLATE = 3;

    /**
     * @var int 建站落地页落地页
     */
    public const LP_LANDING_TEMPLATE = 4;

    /**
     * @var int 单计划链接唯一
     */
    public const LANDING_PAGE_CAMPAIGN = 1;

    /**
     * @var int 单组链接唯一
     */
    public const LANDING_PAGE_UNIT = 2;

    /**
     * @var array 落地页监测
     */
    public const LANDING_TRACK = [
        'click' => '点击监测链接',
        'impression' => '开始播放监测链接',
        'action_bar' => 'actionbar监测链接',
    ];

    /**
     * @var int 商品广告类型-SDPA
     */
    public const DPA_UNIT_TYPE_SDPA = 2;

    /**
     * @var string 全天投放时段
     */
    public const SCHEDULE_TIME_ALL = '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';

    /**
     * @var int 智能抽帧
     */
    public const COVER_TYPE_SMART = 2;

    /**
     * @var int 应用类型-安卓
     */
    public const APP_TYPE_ANDROID = 1;

    /**
     * @var int 应用类型-ios
     */
    public const APP_TYPE_IOS = 2;

    /**
     * @var int 广告位-联盟
     */
    public const SCENE_TYPE_LM = 5;

    /**
     * @var int 下载方式-直接下载
     */
    public const DOWNLOAD_STORE = 0;

    /**
     * @var int 下载方式-落地页下载
     */
    public const DOWNLOAD_URL = 1;

    /**
     * @var int 直达链接类型-视频
     */
    public const SCHEMA_VIDEO = 1;

    /**
     * @var int 直达链接类型-图片
     */
    public const SCHEMA_PIC = 2;

    /**
     * @var int 视频素材-是
     */
    public const VIDEO_MATERIAL_ENABLE = 1;

    /**
     * @var int 视频素材-否
     */
    public const VIDEO_MATERIAL_DISABLE = 0;

    /**
     * @var int 视频素材-是
     */
    public const PIC_MATERIAL_ENABLE = 1;

    /**
     * @var int 视频素材-否
     */
    public const PIC_MATERIAL_DISABLE = 0;

    public static array $sceneName = [
        self::BIG_ADV => '上下滑大屏广告',
        self::REWARD_VIDEO => '激励视频',
    ];
}
